//
//  NKHealthKitManage.h
//  HealthDemo
//
//  Created by SongGang on 2017/3/13.
//  Copyright © 2017年 NK. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <HealthKit/HealthKit.h>

@interface NKHealthKitManager : NSObject
@property (nonatomic, strong) HKHealthStore *healthStore;

+(instancetype) shareInstance;
// 是否支持获取健康数据
- (void)authorizeHealthKit:(void(^)(BOOL success, NSError *error))compltion;
// 获取步数
- (void)getSetpCount:(void(^)(double value, NSError *error))completion;
// 获取公里数
- (void)getDistance:(void(^)(double value, NSError *error))completion;
// 获取楼层
- (void)getLightsClimbed:(void(^)(double value, NSError *error))completion;
// 获取卡路里
- (void)getKilocalorieUnit:(void(^)(double value, NSError *error))completion;
// 获取气压
- (void)getPressure:(void(^)(double value, NSError *error))completion;
// 关闭监测气压
- (void)getPressureStop;
// 获取定位信息(海拔，移动速度，方向)
- (void)getLocation:(void(^)(double altitude, double speed, NSString *direction))completion;
@end
